<div class="page">
		<div class="sidebar_page">
			<!--Content start (.sidebar_page)-->
			<div class="content">
				<div id="articles">
					<div class="page_capt clearfix">
						<div class="fl_left" id="magazin_categories">
							<h2>Magazin</h2>
							<span><a href="?page=magazin">Svi tekstovi</a></span>
                                                        {foreach from=$kategorije item='kategorija'}
                                                        <span><a href="?page=magazin&kategorija={$kategorija.kategorija}">{$kategorija.kategorija}</a></span>
                                                        {/foreach}
						</div>
                                            <!--
						<div class="fl_right filter_opt">
							<form id="post_filter_form" name="post_filter_form" action="" method="post">
								<label for="post_category">Kategorija</label>
								<select class="inp_select" id="post_category" name="post_category">
									<option value="">Svi tekstovi</option>
									<option value="">Sajmovi i dešavanja</option>
									<option value="">Opšti tekstovi</option>
									<option value="">Prodavnice</option>
								</select>
								<input class="inp_btn" id="post_filter_submit" name="post_filter_submit" type="submit" value="Prikaži" />
							</form>
						</div>
                                            -->
					</div>
					
					<div class="clearfix page_body">
                                            {foreach from=$mainPosts item='mainPost'}
						<div class="post clearfix">
							<a class="fl_left" href="{$url}/?page=magazin_single"><img src="{$mainPost.slika}" alt="Face Tattoo" /></a>
							<h2><a href="{$url}/?page=magazin_single&p={$mainPost.id}">{$mainPost.naslov}</a></h2>
							<p class="abstract">{$mainPost.tekst}...</p>
							<p class="autor">{$mainPost.datum}. {$mainPost.username}</p>
						</div>
                                            {/foreach}            
						
						
						<div class="gal_nav">
							{$paginatorMainPosts}
						</div>
						
					</div><!--end of .page_body-->
				</div>
				
				<!-- Page bottom blocks -->
				<div class="cols3spanL" id="botom_boxes">
					<div class="col">{include file="bottom_banners.tpl"}</div>
					<div class="col">{include file="chat.tpl"}</div>
				</div>
				
			</div>
			<!--Content end (.sidebar_page)-->
			
			<div class="sidebar">{include file="sidebar_banners.tpl"}</div>
		</div>
	</div>